<?php
namespace common\models;

use yii\db\ActiveRecord;

/**
 * Class Menu
 * @package backend\models
 *
 * @property integer $level
 * @property string  $menu_name
 */
class GoodsImg extends ActiveRecord
{
     public static function tableName()
    {
        return 'goods_img';
    }

    public function rules()
    {
        return [
            [['goods_id','status','update_at','create_at'],'integer'],
            [['img_url'],'string'],
        ];
    }

    public function attributeLabels()
    {
        return [
            'id'=>'自动增量',
            'goods_id' => '商品ID',
            'img_url' => '商品ID',
            'status' => '1:banner图',
            'update_at'=>'修改时间',
            'create_at'=>'创建时间',
        ];
    }

}